package edu.yzu.testspringboot002.po;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 部门管理
 * </p>
 *
 * @author yulang
 * @since 2023-08-18
 */
@Getter
@Setter
@ApiModel(value = "Dept对象", description = "部门管理")
public class Dept implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("上级ID")
    private Long pid;

    @ApiModelProperty("所有上级ID，用逗号分开")
    private String pids;

    @ApiModelProperty("部门名称")
    private String name;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("创建者")
    private Long creator;

    @ApiModelProperty("创建时间")
    private LocalDateTime createDate;

    @ApiModelProperty("更新者")
    private Long updater;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateDate;

    @ApiModelProperty(value = "是否末级 0：否 1：是")
    private Integer lastStage;

    // 新增字段
    @ApiModelProperty(value = "外联状态（字典维护 – 外联状态）")
    private String outreachStatus;

    @ApiModelProperty("合作期至")
    private LocalDate cooperationEndDate; // 假设只需要日期，不需要时间

    @ApiModelProperty("联系人")
    private String contactPerson;

    @ApiModelProperty("联系电话")
    private String contactPhone;

    @ApiModelProperty("专科数")
    private Integer specialtyCount;
}